Obtain a settings bundle ID for a given target language

Is there any means of obtaining a settings bundle ID (GUID) from a project for a given target language code?

Sdl.Core.Settings.SettingsBundle only exposes the IDs of child settings bundles.

Or do I have to open the project as XML and manually parse it?