Easy:
Ask one male person (let's call him Person A): "Are you Sarah?"
If he says No, he is always telling the truth; if he says Yes, he is always telling a lie, because a guy can't be Sarah.
If Person A says "Yes", he is always going to lie. So ask him, "Are you John?" If he says YES to this...