Ответ:

She asked him where he had got it from.

В косвенном вопросе порядок слов прямой, а Past Simple обычно сдвигается в Past Perfect.