You may use the command net statistics server in order to determine the uptime for Windows 7/2012. The Statistics since… output is the amount of the time the server/workstation has been up.

Windows Server 2012 - Command PromptEnjoy!