Usually, when pinging a server IP address we have this in return:
Pinging with 32 bytes of data: Reply from : bytes=32 time=151 TTL
This may work more universally.
ping -n 1 | FIND "TTL="