Unfortunately, as the connections do not expose an id property (their ID is automatically generated), the only possible approach I can suggest you in order to differentiate between the different connections is to implement your logic depending on each connection's from- and to- shape. For example:
function getConnetion() {
var diagram = $find("RadDiagram1").get_kendoWidget();