0
The study of the use, origin, and history of proper names is generally referred to as onomastics, or onomatology.
The study of personal names (including surnames) is referred to as anthroponymy.