You can try out our free IP to Country ASN database[0]. You can just grep the IP addresses by looking up the ASN or AS domains. Then just extract the IP address range and you should be good to go. [1]
The paid databases comes with AS type (hosting, ISP, business etc.) and we have a VPN detection database as well.