Totally doable. You can code a microcontroller such as Arduino to control the motors in the hands (a microcontroller is a small computer built into a single chip that serves as the "brains" of any electronics project). Look up some arduino tutorials.