[subject] + asked (+ [person]) + if/whether + [subject] + [verb]
[subject] + asked (+ [person]) + [question word] + [subject] + [verb]
A reported question tells someone what another person asked. It isn't a real question any more, so it uses normal word order: the subject comes before the verb, and there is no question mark.
As in reported speech, the verb usually moves one step back after asked: is → was, can → could, will → would.
A question that can be answered with yes or no is reported with if or whether. They mean the same here; whether is a little more formal.
Keep the question word (where, what, when, why, how, who) and put the subject before the verb.
The question helpers do, does and did disappear. The main verb takes the tense instead.
Besides asked, you can use wanted to know or wondered.