As far as I know you cannot do this in a single insert. You would have to insert the row then follow up with an update to the same row once the id is known.
Alternatives:
1. Why bother storing the [windowid] as it is clearly constructed from a combination of the [id] and [name] columns? Just create a unique index on both those columns.
2. Consider using a SEQUENCE instead of an IDENTITY column for your id. E.g. see
SQL Sequence vs Identity Column – SQLServerCentral[
^]. That way you will know the id before the insert and can construct the other column as part of the same insert