Are there any mainstream Torah sources that talk about the Hammurabi Code,
compared and contrasted with Torah in general or Parshat Mishpatim in
particular?
The nearest that I'm aware of is Chief Rabbi Hertz's Humash, which is,
let's say, not as popular today as it was when I was young.