Since you totally failed to specify what operating system you are running, it is not possible to say what command you should use. Ping tends to exist in many operating systems, but will only identify that the specific address is there AND that address is configured to respond to the ping command. Many addresses, including my own public IP address, are configured not to respond to a ping.
Route tracing is the mechanism that you need, but the specific command will vary depending on the operating system. You should note that route tracing relies on the target to identify itself when it is requested to do so. If it will not identify itself, there can be steps in the trace with information missing.
I hope this helps.