for this you have many ways.
with AD it's simple (doh, not), you just crawl it.

with old good NT you need to scan network environment.
like, netview2() and then use that info to read the registry.
_________________________
!

download KiXnet