You need to connect it to the ramp1.colorEntryList[1].position, where the [1] is the number of the color entry, i.e. a color slider in your ramp.
If you can't get it in the SDK window, try manualy keying it;
setDrivenKeyframe -cd locator1.test ramp1.colorEntryList[1].position;
This keys a attribute on locator1 called test to a ramp color entry list position (the middle color in a default ramp)
Using this command you can set up the SDK as before but without the SDK window.
Richard