Best way to do that is to monitor the VPN IP address.
Here is a Node-RED flow that provides this (and other device health data).
You can get that IP a few different ways, so if Node-RED is not going to work for you, lets know what other options you have.