Country mapping IP, department

Is there a pice of collector code available that reads the data from the Country-IP-Mapping table and add this information to the asset-list?
I would like to have the Country-Description column (which is filled with our Departments) copied to a more usefull field all based on the ip-address. The long/lat-field is already parsed.