At the hospital, protocols for determining brain death vary depending on the institution, but we have more advanced tools than just EEG now. I see a lot of radiological investigations that measure cerebral metabolism with scintigraphy - here's an example of what that looks like with a poor outcome (I am not a radiologist by any means, and I explored this outside of being an EMT) [1]. Notice how the brainstem is dark but the rest of the brain isn't doing much. Other investigations such as some MRI sequences may prove useful to identify ischemic insults and damage that strongly correlate with poor outcomes. Based on the phrasing of your question, I would point out that these tests would only be performed on a patient where brain death were clinically suspected based on e.g. prolonged cerebral hypoxia from a drug overdose... not every dying patient.
I don't know enough about the medicolegal or surgical side of things to go into more detail there.
[1] - https://img.medscapestatic.com/pi/meds/ckb/59/26659tn.jpg