I don't know about existing adventures, but this is one of my all time favorite films and I've considered running a game like this myself.
As is always my advice, begin by figuring out what will happen if the PCs do not come to the farmers aid. I'd expect it to go down like this:
The Bandit Leader wants to continue bleeding the farmers dry, leaving them with just enough food to live through the winter, but all else going to the bandits.
The Farmer Elders know they do not have enough food to survive the winter and have failed to hire any help, they really have no choice but to try to fight anyway. They have no skill in this so they are likely to do what is obvious: let the bandits come collect their tribute and attack them with farm equipment.
They might succeed in this initial fight, but it will draw the attention of the Bandit Leader for a counterattack. The Leader will send in scouts and spies to see what (if anything) the farmers are planning.
I think the Farmer Elders are smart enough to know that beating back the small group of bandits won't be the end of it. They'll probably set up some basic watch groups at the logical entry ways to the village and when they spot an attack they'll raise an alert and they will fight in a barbaric fashion in small groups very ineffectively.
The Bandit Leader will lose probably 1 man for every 10 farmers killed and will probably order his bandits to try to disarm and capture as many farmers as possible and re-enslave them to keep working the farms for them.
Enter the PCs
The Farmers have almost no way to pay the PCs. They will try, and let the PCs feast, but you should make it clear to them that while they are feasting the Farmers are eating scraps. Assuming your PCs are good, they should be willing to protect the Farmers for free (maybe for whatever the bandits carry) after that, seeing how miserable the Farmers really are.
From here, you need to be really flexible. Try to describe potential. Draw a map with obvious entry-ways and also less obvious ones (over the fields) and natural defenses like rivers and mountains. Describe what the Farmers have at hand (bamboo, farming sickles, rope, so on) and let the player's be creative with those items. Maybe they'll think to sharpen bamboo as pikes/spears or for making barriers. Maybe they'll think to dig ditches to trip horses in the fields.
Maybe the PCs deal with the scouts and spies. If they don't think about that possibility, nullify some of their traps with phrases like "The horsemen weave their way past each covered ditch, as if they already know the ditches are there" and have an NPC spy they trust try to backstab them.
If the PCs do a good job, they should be able to save many of the lives of the farmers and end many of the lives of the bandits and they should be able to hunt down and confront the Bandit Leader in his own camp.