i've heard this before, not here, but i don't know the answer

i'll think about it.
Edit: i've found it (maybe). You ask both of them if they are brothers, and one of them lies, he's the lyar. One of them doesn't lie, he is the honest brother. You ask the honest brother the right way, and you follow it.