I don't think it's possible as you don't have access to the game process so you can't hook onto it. The only way I could see this be possible is if you use a cheat that scans the frames for enemies but it would also scan your teammates so I'm not sure if it would be that useful.