Hi Chris, thats a bit of a problem mate,how do you know it's expanding foam? Do you know where in the pipe it is ? when we sweep chimneys one of our sets of rods are very thin and flexible which we attach to a drill, if you can see the pipe outside you could cut it off and send some rods up it even drain rods if it's a straight run, have a think about trying something like that before you start ripping things apart, or see if you can a friendly chimney sweep who may give it a go, it wouid'nt need a brush on the rods ,the rods alone attacted to a drill should break it up if its not totaly blocked like you stated, it's the only thing I can think of that might work before you rip everything out, hope this helps regards kevin