For any asset within Marketo, you can find the ID in the URL. The end fo the URL when selecting a form should look something like #FO123B22. The form ID is everything after the "FO" and everything before the next letter in the URL. In this case, the form ID would be 123.
You can use the same logic for Landing Pages, Emails, Smart Campaigns, etc...