For reference, after not realizing I had made dumb capitalization mistake and writing getArmy instead of GetArmy and spending an hour searching for an alternative, I found that unit:GetAIBrain().Name will give me the army name (ie ARMY_1).