Hi,
Should be doable. You can set the name of a body using "SurfaceBody.Name" property. From your quick description, it is hard to figure out what would be your workflow. Do you want to prompt the user so he can select a block or do you want to parse the existing blocks...? Both approaches are possible. It is however not possible to automatically bind the name of the solid to the name of the block, if that's what you meant. You would need to run the code each time the block name is modified, so it can update the name of the solid. Maybe a modeling event will be fired if the block name is modified, so you could use that to do the update.
Regards,
Philippe.