Well if you're in a TCP/IP network under Windows 2000 (under NT4 as well in most cases) a simple nslookup will probably give you the correct information (you'll get back <machine name>.<domain>) provided that the DNS is setup in the normal way (auto registering hosts in DNS). Past that if you are using DHCP you can look at the client leases, ditto for wins. There's probably a few other ways to do it as well, but I'd have to do a little research, but the above would be the quick way providing all the above stuff is true.
Andrew