If you are looking to find the actual cell values of the SP and TM regions, the only way I have done this is by getting the algortihm instances like this:
Once you have those, you can inspect them as shown in the conjureXXX
functions in TmFacade
and SpFacade
in the NuPIC Usage FAQ.