The language of an epub book is defined in its opf file.
There you will find something like this:
Code:
<dc:language>en</dc:language>
As far as I know at least some reading system use this information to choose the dictionary they use if you look up a word.