I’ve been tempted to do the same thing for years with my Hario Skerton and a Makita 12v driver drill. It’s 400ish cranks every morning. I would imagine a finer grind with an espresso bean would take you much longer. As it is, the morning grind is part of my routine and a much as automating the process, having my drill shared between the garage and the kitchen would introduce it’s own issues.
The reason I used to use my work PC for online purchases/personal finances because the network at my employer was much more secure than my home network. But it was a smaller company back then, now that we’re “corporate” (partnered a larger entity) I don’t.