https://se.mathworks.com/help/symbolic/sym.symreadsscvariables.html
symReadSSCVariables - Load variables from Simscape component - MATLAB
This MATLAB function returns cell arrays containing the names, values, and units of all variables from the Simscape component called componentName.
loadvariablescomponentmatlab