If you want to find how long it has been since an XP system has bee reported then use:
This produces a lot of information. Look for the line System Up Time
If all you want is to get the System Up Time then use:
> systeminfo | Find "Up Time"