you can use WMIQuery() UDF to do it, but the client machine needs WMI installed.

XP, 2k, NTsp4+ have it built in (including servers)
95, 98 need to have it installed
ME might have it built in

pending that:

$os=wmiquery("Caption","Win32_OperatingSystem",$remotecomputer)
_________________________
How to ask questions the smart way <-----------> Before you ask