This is the compatibility chart you want
http://www.shimano.com/publish/conte...ty%20Chart.pdf
Mixing the components you have listed will work, less possibly the chain; the 6701 chain is symmetrical, when the 5650 doesn't need this, and you really should be using a regular non symmetrical 10 speed chain like a CN-6600.