Resolve host name from user name?

I need to resolve a computer name from a user name on the LAN for an
application I am writing.  I figure it's a NetBIOS call, but does anyone
know which one, or actually how to do it?  Is it even possible?

TIA,
--

r...@execpc.com