I can point you to a
thread in which the philosophical ramifications of this line of reasoning are discussed. As for books, I haven't really read one that I think adequately discussed free will from this point of view. I'm sure there are many books like that out there, but I have only come to this topic recently and am unaware of what they are.