I agree that you not say anything. It will backfire and the parents will end up hating you and protecting their little darling. IF the kid were talking about murder.....that's another scenario.
Yes, if it was violent-type writing he did (to hurt someone else or himself), I would tell them.