I haven't tried this one, but:
http://freshmeat.net/projects/lineak/?topic_id=146
Looks like it does internet keyboards (ya know, it's hard to even *buy* keyboards that don't have all those extra buttons now. Pretty strange.)
You might be able to turn up something similar for the extra buttons on your mouse just by doing some google searching or whatnot.