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