The phrase "to whom" refers to both James son of Zebedee and his brother John.
"the name Boanerges, which means men who are like thunder" or "the name Boanerges, which means thunder men"