You look
here and find the offset of the thing you want to read the value of. Then you use
MemCalc to determine the unit and player you need to use in the deaths condition.
Finally, in order to create the condition you need Starforge with slightly different trigger definitions (see above). There might be other programs that can do it too, but I'm not positive about those.