Look up the verb "wonder" and then try to rewrite your sentence using that verb.
I have done it.
It's not a question.Sometimes I wonder [STRIKE]that[/STRIKE] how [STRIKE]would[/STRIKE] Tom would have looked when he was six.
Sometimes I wonder, [STRIKE]that[/STRIKE] "how would Tom have looked when he was six?" (Is it a question now?)