Those are some optimistic assumptions. Perhaps the Robots will refuse to fight and will all hold hands and sing kum-bay-ya, eh?
I thought it was one of Stanislaw Lem's novels, but can't find the name now; I might be wrong about that.
For another perspective on autonomous drones read Robert Sheckley's Watchbird.
Edit: The Defenders, which became The Penultimate Truth.