Anytime the colorbox is open, you can call the element method to retrieve the jQuery object of the current element. From there, you can select an item and access the href property:
href = $.colorbox.element()[0].href;
, ( 'this') . , onComplete, , - :
$('#example').colorbox({onComplete:function(){
href = this.href;
}});