Your account name in World of Warcraft is the Battle.net account you log in with, which is the identifier tied to your subscription and your characters. It is not the same as a character name, which is what other players see in game.
You choose the account name when you create the account, and it is usually an email address these days. If you have forgotten it, the recovery tools on the Blizzard site will help you retrieve it.