Use getip() and some online service to determine wether or not that ip belongs to a vpn provider.