Electro-mechanical surgical device with data memory unit