Well, there's no 'Replace Block' functionality in SolidWorks itself, so you won't find it in the API either. You will have to get the existing block, make note of it's properties (position, scale, rotation, etc), delete it and then insert a new block, duplicating the properties of the original.
Jim S.