That's a thin ice you're walking here...
Some people appreciate the support, some people don't like when work contacts get into their personal feelings territory.
It's highly dependent on how close your interpersonal relationship is with co-worker, what I'd avoid for sure is suddenly closing the distance just because you know he is trans and you can tell recent events are affecting him.