Do you have control over the other application or not?

What you can do is enumerate all process and check if a specific process is running if you don't have control about the other application.

If you have control over the (source of) the other application, it's wise to create a semaphore.