Unless you normally inquire after the sexual activities of couple you've just meet, then I would say, yes it is gauche to ask which one is the husband and which one is the wife.
Actually, asking anyone about their sexual activities is usually frowned upon by Miss Manners.
Besides, unless you're planning on having sex with them, why do you care?