PowerShell get a list of network machines
Soemtimes the old school way is the easiest.
Here's another thing you can do (depending on your worgroup name).
Piggy-backing on Shay's answer:
This will grab your domain or workgroup name and use that for you.