There are some ways, it depends from serialization context.
As example you can use ExportToXml/ImportFromXml methods from the TreeView replacement sample.
Also - Node is serialization ready class and this class saves expand/collapse state in the serialization stream.