This is a very polite and formal way of asking for the name, and you even asking only for the surname.
Check out this group of Chinese phrases too. You might find more useful Mandarin phrases. The current Chinese phrase "May I ask your name?" appears in this group
Learn how to say the Chinese phrase for May I ask your name? with standard Mandarin pronunciation. Free Mandarin phrases with pinyin and literal translation