You can ask for someone's pronouns by simply asking "what pronouns do you use?" or "what are your pronouns?" If this is in the course of introducing yourself to someone new, it is good practice to share your own pronouns first: "I use he/him/his pronouns. What pronouns do you use?"
It is important to ask this question to everyone, and not only those people who are visibly gender non-conforming.