Maybe it doesn't make it any easier but your question does remind us that cataloguing and categorising people can be dangerous. I accept that there are good reasons that the state could use this information, but we should also be alert to possible abuses.
Without looking, I honestly don't know if the passport and driving licence lists this information. But the census certainly does.