And don't even go near your friend. Stay away from him. By attacking him in any way - by embarassing him or trying to make him feel bad - you will be attacking your wife.
Believe me, if they are having an affair, they aren't getting off "scott free."
If she has cheated and you still want to be with her, that is something you need to deal with later. Trying to deal with it in anyway right now, is just you beating her with a stick again.
Stop thinking about it. I've done it and you can too.