GeoDetect is a Drupal project (module) to help locate the country of the visitor with its IP address.