As China hurries to beat the US in a technology arms race, it is throwing billions at developing machines for everything from warfare to making coffee. But is it too much, too soon?