Hey dyby.
Yes this is possible.
A message that uses the /me function of Twitch looks like:
:jb940!jb940@jb940.tmi.twitch.tv PRIVMSG #CHANNEL :ACTION banana
As seen in the image, there are 2 extra characters there. I do not know what these are, but you could just look for a message starting with ACTION