It suppose to be 2D object in 3D space. ...
If it's a real 3D then everything is simple, you don't even need any calculations, Construct3 will do it all by itself.
You just need to put the image of the health bar progress bar in the 3D object and attach it above the players and keep it turned to the camera, and the width of this object will show the number of lives.