Nine laptops were taken during a break-in to Pitcoudie Primary School on Sunday 20 November.
Police said two men aged 24 and 22 were detained and charged in connection with the theft following inquiries by local officers.
They are due to appear at Kirkcaldy Sheriff Court later.
Two men have been charged after an £8,000 raid on a Glenrothes primary school.