The below bit of PowrShell will return the uptime and last boot time stamp of a remote Windows computer.

Change the $server variable as needed.

PowerShell uptime snippet