Washer drain pipe flush against outside wall
Using your favorite search engine, look up "Pipe Heater Cable". Most have instructions to attach to the outside of the pipe, but some may be fed down into the pipe. Be sure to read and follow the direction coming with these and I would avoid cheap ones from ebay/amazon, you don't want the pipe or your house damaged to save a buck.