As a sole proprietor working from home, can I deduct an espresso machine only used during work?
You can deduct all ordinary and necessary expenses made in connection with your business.
See https://www.law.cornell.edu/uscode/text/26/162
That does not necessarily mean that the deduction will not be questioned by the IRS.