Jaime King has lost physical custody of her two sons, James and Leo, as she heads on to a compulsory six-month rehab program.