Register Hereor login if you are already a member
As you asked for command line tool & if understood correctly, open command prompt with admin rights, and try to pass this command like,
This can help to show all computers name within a network. Another command you can try for wifi network, like,
netsh wlan show networks
and press enter key.