We had to run a commercial grade of Heat Tape through a drain pipe from an In Wall Roof Drain on a TGIF Restaurant, because the coldness and lack of sun striking that wall would freeze up the pipe and back up the water on the entire roof surface, which was a hot asphalt built up roof system.
So, that was either cast iron or pvc pipe as I don't remember from over 15 years ago the exact details.
Heat tapes are often run through water lines to keep them from freezing also drain lines. Check with a local plumber or a local plumbing supply outlet. They should be able to give you details of this type of installation.