Best choice might be to create a SW or manufacturing API program that can read or write to the device with SPI or I2C interface, if you don't already have that. The MAX II UFM has enough space for serial numbers and the megafunction has SPI and I2C interfaces it will build in LEs for you. Those may take around 150 LEs though, so you'd need the space available in your 570 design. In manufacturing you need to add the SPI serial number programming step AFTER the CPLD programming step. You could have a scripted SPI tool that changes file source serial number information for each device coming down the line.
Its possible , its just whether the stars align...