From the Florence airport, you can take the new T2 Vespucci tram line to downtown Florence, to Santa Maria Novella, and from there catch the local regional train to Montelupo. You can see train schedules directly on Google Maps if you select the "public transport" tab.