i'm assuming you're using an identity column as the primary key on your table. if so you can say:
SELECT @@IDENTITY

your development environment might also provide this information in a more seamless way...