The IP address of the machine is $REMOTE_ADDR.
you can retrieve the hostname of the client like this:
$fullHostname = gethostbyaddr($REMOTE_ADDR);
That will return you the fully qualified hostname of the client machine. It will not necessarily return the windows machine name. If you want the hostname of the machine (without the rest of the domain) you could then do this:
$hostname = reset(explode('.', $fullHostname));
As far as I know, there is no variable that represents the name of the machine as recognized by MS Windows.