According to a guide for Sensory Evaluation of Products by Children published by the American Society for Testing and Materials kids as young as 3 are definitely able to discriminate between what they like and dislike.
FORBES: How Food Companies Carry Out Sensory Consumer Research On Kids And Babies