This is not that good of a solution because you will still need some way to enumerate all the Windows type (meaning including Samba) machines on the network.
in reply to Re: Scanning for windows shares
in thread Scanning for windows shares
Check out the resource above, and the rest of Dave Roth's site. There should be something there.
Figuring out how to query a browse master might also get you some good results too.
"Nothing is sure but death and taxes" I say combine the two and its death to all taxes!