If the voice-chat is in-game, that isn't going to be possible.
If it's through something like Discord, you can look into third-party audio routing software like VAC or VBAudio. Google search for 'OBS exclude audio VBAudio' and there should be a ton of guides out there on how to do it.