It is absolutely fine to have a single Gourami all by themselves (Male or Female), Many people use a single Gourami as their "Centerpiece" Fish. *thumbsups
As for sexing them, look at their Dorsal fin, if it's longer and comes to a distinct point, it's likely a male, if it's shorter and more rounded point, likely female (There are some exceptions to this rule, but it's fairly accurate across most types of Gourami). If you have 2 males, definitely seperate, they will live peaceably most times, but can get very aggressive towards each other on a whim (Usually associated with spawning time).
Others may/will disagree but I have never believed in housing 2 males together.