1 'Go to blazes!' *Slang, old-fashioned [Go away!]
Can I have a word with you for a moment? -No, go to blazes!
2 'Like blazes' *Old-fashioned [Very fast/much]
She ran like blazes away from the scene of the explosion.
3 'What (how, when, where, who, why) the blazes?'*Old-fashioned [Whatever (however, whenever, wherever, whoever, why ever)] used in questions to emphasise a strong feeling such as annoyance or surprise
What the blazes is going on here? / How the blazes did you get here? I thought you were on holiday in Canada!
taken from the GLOBAL ELT ENGLISH IDIOMS DICTIONARY