If you have a thick but non conductive foam, try scanning acoustic microscopy instead. you will get the areas/volumes of pores in 3D sound imaging. From the images one can find out the pore sizes and distribution.
Difficult question as such foam is based on very lighweight elements and therefore getting a contrast by tomography is not easy. If you can do the same with D2O instead of H2O, it will be better, but still you'll need to do the tomography in a synchrotron for getting enough resolution. Easier is the determintaion of the average cell size with an optical technique such as the one provided by the Turbiscan Tower device (from the company Formulaction). But it is not a distribution, only an average diameter and how it changes with time: drainage, collapse, sedimentation and other ageing effects can be easily investigated with this technique.