you'd have to learn the netbios protocol. Or perhaps the netbios API would give you that information. I have not researched in this area that extensively.

Here's a suite of utilities that show you what can be done:
http://www.sysinternals.com/ntw2k/freeware/pstools.shtml
_________________________
Domain Registration, Hosting, Management
http://www.dollardns.net