Get the Desktop Icons positions in windows using python code

I am trying to get the positions of the desktop icons in python so that i can get the number items lies horizontally and vertically. So is there any python package so i can use that.

I believe you will need to edit the locations in the Windows registry.
The python library for editing the registry is _winreg

Article on _winreg

You will have to research windows forums to figure out which keys to edit though.