The more important question is, can you do anything about it, if the reason is far away along the “packet route” from your computer to the server?
Anyway here is something to start with:
https://en.wikipedia.org/wiki/MTR_(software)
http://winmtr.net/
But if it happens only very rarely, you will be having a hard time catching the error.
What’s the error message anyway?