I'm Not using Voxels but it looks like!

I have a question to all bprint experts out there:
this bprint converts a static mesh into a bunch of cubes. I 'd like also to replicate the mesh material color so that each small cube has the color of that particular piece of mesh. Is it possible to get the color of the material of a static mesh just having a world location point? So if I have the world loc and in that location there is a mesh, I 'd like to know the mesh material color in that exact point?
If you have an idea please answer here.