As far as I can tell there isn't a way to grab the incoming text through dcop. You could write a plugin for Kopete that when there was incoming text it would send it to something else through dcop (the you would have to be constantly checking through dcop for incoming text).