When a scene is instanced from a file, its topmost node contains the filename from which it was loaded.
public string Filename { get; set; }