Is there a way to retrieve the value of defaultContentLanguage?

Looking at your code, it seems what you want isn’t exactly related to hreflang, and seems instead like a language switch.

Did you have a look here: Language switcher in menu?