Is it possible, through any API, to search through the accounts of a specific domain and get the NT-loginname knowing only the persons reallife-name?

Ex:

knowing: "Adam Taylor"
getting: "Whatever\AdTay (Adam Taylor)" from NT

Where : Whatever is the domain
AdTay is the users loginname