If you received a manual action, there will be a note to this effect in your Google Search Console. With algorithmic actions, your only indication may be a drop in traffic that corresponds to the date of a Google algorithm update.