You can get the "When I Say" contents when the command is executed using the "{CMDWHENISAY}" token.
Otherwise you could try the "CommandExists(string CommandName)" function in an inline function or plugin; It won't get you an exact comparison, but it'd tell you whether there's a command in the profile with a "When I Say" field that matches the new data(or the old, if you want to check that first).