The closest you van get to cathodic protection on a transformer is galvanized, or zinc rich paint as the primer coat. Using anodes for protection of equipment not immersed in water is not going to be beneficial.
For installed transformers, repair corroded areas with a high performance coating system, prep and apply per the coating systems data sheet. There are really good coating systems for salt spray zones. Get a recommendation from your local coating supplier.