There are several methods including Reverse IP, Metatags and other language detection techniques.
Jeremiah