You'll need a connection scheme (hardware) and software by which to capture the audio stream.
Software-wise, I'd suggest Audio Hijack Pro.
You didn't tell us what kind of OUTPUTS the tv has, and what kind of INPUTS the Mac has. That will make a difference.