When an electron strikes the target in a Coolidge tube, its entire kinetic energy
An electron striking the metal can lose its energy via collisions which generates heat and bremsstrahlung and/or can knock off electrons to produce characteristic x-rays. So, the energy may be converted to heat or to a photon.