Is there a built-in command line function in Windows that will determine or return the OS of a remote IP?

In other words, if a field tech inputs a remote IP the result would let him know if the IP in question is running Windows 95, Windows 98, Windows 2000, etc.??