How about that:
http://smartandroidians.blogspot.com/2011/05/way-to-check-whether-application-is.html

but http://developer.android.com/reference/android/app/ActivityManager.html#getRunningAppProcesses()
there's written "Note: this method is only intended for debugging or building a user-facing process management UI."