https://play.google.com/store/apps/details?id=org.kc.tasker.processes
https://play.google.com/store/apps/details?id=se.harenamons.ismusicplaying
But is also possible with a simple "Run shell" action. To check if Sixaxis irunning, i run this command:
ps | grep sixaxis_driver
If the result variable equals 1, it is not running.
Matt