The International Lesbian and Gay Association is probably the best source for keeping a tally on states that criminalize same-sex behaviours. Their 2016 report mentions 73 states, and I believe there are 13, including Iran, in which it's punishable by death.
I don't know if they go into specific details of names, but they do a robust survey of countries. That's probably a good resource to start with.