I am making an application that works with another one, is it possible to find out if the app it is working for is open?

Thanks