How do you programmatically determine if the IDE is running?

Thanks in advance.

CodeHacker
Rate me if it helped, Thanks