How to get the window width and window level of DICOM file, and set VR data to display only bones according to the window width and window level.

This example shows how to get DICOM tags. In Python it is even easier: image["0010|0010"].

display only bones

As ITK does not deal with visualization, you will need to consult your visualization library for this.

You should also read this short thread: