Hello,
Yes, it would be legal to install three medium lasers using Detachable Weapon Packs since you have sufficient slots and weight available assuming you follow the weapon placement requirements. For anti-Mech weapons on a bipedal suit that would be a maximum of one per arm and two in the torso.