There isn't such function (AFAIK), you'll need to detect that yourself.
The easiest but can be unaccurate way is to get the prefix of the map, use get_mapname() in a 3 cell array and compare to "de", "cs", "as", "es", "fy", etc.
A more accurate way is to get the map's game entities and decide what game modes the map contains, since a map can have hostages, vip, bomb and terrorist escape all in one, it's quite hard to include all of those into the map's name

but I don't really know what entities are required for each game type, so you'll have to research on that.
__________________