Consult your tax professional but I don't think these fees you are referencing can be deducted as investment expenses on your income taxes. They would be included in your cost basis and thus from a tax perspective are factored in when determining gains (proceeds - costs) assuming this is a regular 401(k) and not a roth 401(k).
The fees are taken out from the sale of my 401k stock shares,