Detecting third party applications

How would I set my game to be able to detect third party applications that are open?