If the one guard always lies, then you simply ask a question which you already know the answer to.
i.e. If both guards are male, you simply ask the one if he is a male. The one guard will tell the truth and say he's male, the other will lie and say something else.
That's how you find out...