How in Tartarus

I would like to know what is the origin of phrase "How in Tartarus" synonimous to "How in blazes" and others.

Blazes, Hell, Hades etc:

One entry found for Tartarus.
Main Entry: Tar·ta·rus
Pronunciation: 'tär-t&-r&s
Function: noun
Etymology: Latin, from Greek Tartaros

a section of Hades reserved for punishment of the wicked