How do I get the health variable from multiple different enemy classes?(blueprint)

If you make those component with an event,

OnLockOn → Actor ->GetComponentByClass(YourComponent)->IsValid->AssingOnHealthUpdated

on your widget spawn. Can be also another neat method.