The actual details of someone's convictions etc. are public record, so naming them and their crime & sentence is not illegal.
There is probably some code of conduct etc. that the Prison Officer may have to abide by, but if the PO discloses something that is public record anyhows, probably nothing can be done.