There's a method getActiveCodeChoices() that will give you what you need