Determining space use-case

Is there currently a way to determine the space use-case (remote work, event, etc) via the API? Specifically, I am looking at the ability to have portions of my code active only if those features are available in that type of space.

This could also be useful for bug testing, as you could generate a bug report for your code and include the use-case for the space the bug occurred in.