If you do some searching here on Stack Overflow, you'll find plenty of material to help you in this direction. For example: Get list of user in Active Directory.
To retrieve data for a single user, see Quick way to retrieve user information Active Directory.