You may find this forum post to be useful:
How should a fine from HMRC or Companies House be treated
Basically you’d need to create a nominal code in the 79… range. As the penalty is not tax deductible you’d need to manually add it back. In your tax summary you can manually configure you’re own add-back codes.