With the UFX or a similar multichannel interface REW only knows L and R as inputs and outputs.
So, in the Audio/MIDI application under Configure Speakers choose Analog 1 and Analog 2 as output (software playback). Sound from REW will be routed now to these channels, which in TotalMix can be...