
Ipslore the Red |

The fluff is, but mechanically it simply ignores "defenses and immunities that protect against death effects, negative levels, and energy drain, affecting the target as if the protective barrier did not exist."
blahpers put it nicely- golems are immune to both, and a thanatopic spell is still a spell; it can't overcome immunity to magic.

Drejk |

My first thought was Thernodic spell too.
A quick checks leads me to believe the following:
Constructs' immunity to death effects and energy drain is the same as Undeads'. However, there is also an added factor that constructs are explicitly immune to all necromancy effects which Thanatopic Spell does not seem to override.
Golems also have immunity to spells, which is separate trait and as such is not overcame by Thanatopic Spell. A hypothetical death or energy draining spell that would ignore Spell Resistance (or some special ability that would allow ignoring Spell Resistance) could affect golem when altered with Thanatopic Spell metamagic feat if it would not be necromancy spell... Probably.