Available Platforms Detection

How can I detect the available (installed) platform modules (Android, iOS, etc) in the Editor script?

I can’t see that functionality available anywhere, other than by trying BuildPipeline.BuildPlayer with each specified BuildTarget and see whether it errors or not…