The penalties depend on the law prevailing in your area. For some, your winnings will be confiscated if they found out that you are underage to gamble. Also, you cannot withdraw your winnings in an online casino. Online operators are the ones who will deeply face harsher penalties. Most of the time, their license will be revoked.