Is it possible to track if a chest is naturally spawned by a structure?

Is it possible to track if a chest is naturally spawned by a structure?
Continue to help post