Generally speaking you can’t do this as explained in this thread Detect all running macros - #2 by peternlewis
But - it really depends on what you’re trying to achieve. For example, using a semaphore lock in the macro you want to check for “running” allows any other of your macros to query that semaphore and act accordingly.