Put the question into reported speech: Tom asked Sophie: "When will you come back?"
Tom asked Sophie when she would come back