On Inverse Problems for a Beam with Attachments