This little command line program is what you're looking for:
Allows you to create, modify or query Windows shell links (shortcuts)
from the command-line. You can export the properties of an existing
shortcut to a text file in .INI format. Use 'Shortcut /?' to view the syntax.