It might have been asked before, but I can't find an answer...

In a Terminal Services environment I'd like to query the computername of the client.
Has anyone got a working api call for me that he (or she) would like to share?