Hello CaG,
I assume that you have a system which is represented using a S-function block and you want to initialize the states in that system using the S-function. You can do this using the "mdlInitializeConditions" more information about this can be found here:
Moreover if you have a LTI system, you can use the LTI block do the same.
-Rutuja