in reply to Workgroup and Client Names

The best way to do this is via the Win32::Lanman module. Specificially, NetServerEnum() will give you a list of machines, and there are other functions for enumerating domains/workgroups.