In iOS4.2 there is a new class UITextInputMode that is exactly what you want.
(Oops, this is still under NDA. If you have no iOS dev center account please don't read this answer ;) )
You can query current mode (English, French, Japanese, etc) or get notifications when it changes (the keyboard language changes)
UITextInputMode documentation (requires log in)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…