I would like to know if i can modify/update the name of a Simulink block with the function set_param and if yes which param name i have to put or another function.
Thanks
Yes, for example:
set_param('mymodel/Gain','Name','My custom name')
See the documentation on set_param
for more details.