Does anyone know of a way to get all the machine names of all the pcs connected to your network?

Thanks