Can I Deduct Computer purchases from taxes?

My wife and I are both primarily W2 employees but between the two of us we have about 20K of self employment income (side jobs). We both bought new macbooks that we use almost exclusively for work. Can I deduct the full price of those computers from the self employment income portion as job expenses (or in any other way)? Or is it solely if I was only getting paid as a non W2 employee?