To echo the sibling comment: approximately not, it's a strong acid bath which precludes operating electronics in it, and it's electrochemistry.
People do home anodizing all the time, but colored home anodizing on electronics is very rare.
The way to do it would be wrapping it in, say, a wet paper towel with your strong acid solution (but not sulfuric, because that would turn the paper into pure carbon foam) and running outside current from the laptop through the paper to a cathode, or vice versa.
Wouldn't you want to completely disassemble the laptop first anyway, at which point the electronics would be disconnected from the metal parts anyway?