Easiest way -- just anchor the UI element to the 3D object. You will generally want to organize your UI element like this:
Widget (anchored)
- Slider for HP
- Label for the name
Alternatively you'd write a script to convert from world to screen point, or just use the HUDText plugin if you have that.