Open each bleed nipple a little bit. Use a rag to catch the fluid that will come out. I've had this happen to old Hope XC4 hydraulic brakes when the bike was left for long periods in the hut during winter. I think because the brake fluid is hygroscopic it absorbs enough moisture to push out the pistons because the XC4's are a closed system.
On the other hand the pistons might be seized in the calipers, a dismantle, clean up, new seals and change of fluid should get them working OK.