I doubt it, the primitive data index is not exposed.
There is per instance custom data node for instanced static meshes & hism’s so that each instance can have it’s own data.
You could just make a dynamic material instance and set a parameter