Foam can be placed in your rubbish/general waste bin.
If the item is clean, white Expanded Polystyrene (EPS) it can be taken to your nearest resource recovery facility for free.
Alternatively, you can visit Expanded Polystyrene Australia to find your closest recycling point, https://epsa.org.au/where-can-i-recycle-eps/