From Wiktionary, the free dictionary
hwam
- (Early Middle English) Alternative form of whom (“who, whom”, accusative)
From Proto-Germanic *hwammai, dative case of *hwaz (“who, whose, what, why, how”).
hwām
- dative singular of hwā
- dative singular of hwæt