How to know if the current Server program is supernova or scsynth?

Hello!
How do you get if the current server program is supernova or scsynth?
Is the following way correct?

Server.program.contains("supernova")
Server.program.contains("scsynth")