The only way I know of doing this is with third party software (either plugins or a database of IP address ranges). Search google for GeoIP.
Depending on why you want this - i.e. is it for language localaeization (spelling!!!) or not? If it is there is an server variable containing the clients default language - i.e the language their computer is running in.