How can I find out what linestyles are contained with a dgn file
When a linestyle is used it is written into the file, however if a user then deletes all the elements containing the linestyle the linestyle definition still remains in the file unless it is removed using File > Tools > Compress Options.
This will expose the linestyles that are in the file even if they have been removed as demonstrated in the following video.