@Lolololito
I don’t believe that is an option in the InternetMonitor module. You could ask the author to add that or you could fork the repo and trying coding that in yourself. :-)
I think there are a number of “ping” modules available. Maybe one of those will suit your needs. Check this page:
https://github.com/MichMich/MagicMirror/wiki/MagicMirror²-Modules#3rd-party-modules