If the Hardie Board was installed on a rental property, then yes. This can be expensed as a repair.
If the Hardie Board was installed on your personal residence, then the IRS will not allow a deduction for this new siding. However, you may be eligible for a Residential Energy Credit if you added insulation during the process of replacing your siding.
Please see this EnergyStar
webpage for more details.