Nothing wrong with your solution.
But if you want it more "generic" you can try this:
insert into Forma (formaNazwa, FK_projektId)
SELECT formaNazwa.Value,projektId
FROM Projekt
CROSS JOIN (VALUES (@forma1),(@forma2)) AS formaNazwa(Value)
WHERE projektNazwa = @projekt