You need to check the source of the connections (assuming that the Source and Target shapes of all connections are properly set):
GetChildren(ConnectionCollection items, RadDiagramShape shape)
(((RadDiagramShape) connection.Source).Text == shape.Text)
I hope this will be useful. Let me know if you have additional questions.
Telerik by Progress