Edit: Guess I lied

just looked at my perk again and I'm using GetCombatState == 0
IsInCombat works on the player. I believe it should return true if there is an enemy actively engaged in combat with the player (red marks on the compass, exciting battle music, etc.)
My testing has been limited, however.
I'm using it in an allow dual cast perk to keep the player from dual casting certain things in combat.