Well, Since they play video games, I suggest do it while they're in a tranquil state of playing, (In the middle of a chill match)
And you should say it as casual as possible, Like: "Yo, How would you react if I was transgender?"
Like as if you're actually wondering, If the fellow doesn't mind, Then it's time to Unlock some Achievements! (See what I did there? xD)