how to write and alert for different devices such as laptops and cellphones to see if they are VPNing?
you probably will not get answer for this type of questions. pls provide sample data regarding the same to solve the your problem.
As @mayurr98 says, I'd love to help, but you need to give us a bit more to work with.