"Sam Hill" is indeed a euphemism for hell. My father used to ask, rhetorically, "What the Sam Hill blazes do you mean by .... ?"