No, bearded dragons cannot eat snakes at all for a number of reasons.
They would have trouble digesting the bones and the skin of a snake for starters. Additionally some snakes are poisonous and this could kill or badly harm a bearded dragon.
As well it is possible that some snakes would eat a bearded dragon instead of the other way around.
Additionally snakes could be a choking hazard for a bearded dragon.