How to get the window id with title of every process?
Yes, you can get the window id and window title at the same time:

tell application "System Events" to get the {title, id} of every window of every process


However, many/most processes are invisible ones, so you'll want to reduce your list:

tell application "System Events" to get the {title, id} of every window of (every process whose visible is true)


And further, id is not something set in most windows. Perhaps you can say more about what you're trying to accomplish. You can examine the potential window properties with:

tell application "System Events" to get the properties of every window of (every process whose visible is true)