As I wrote previously, if you are on Cap Gap and your OPT end date is extended to Sep 30th, then it means that you were selected in lottery. But, there are scenarios, where you as an F1 Student may not be in cap gap, but have full OPT period or you are on F1 status. Question is that does SEVIS system be updated for such cases.
Simple answer is ‘Yes’. SEVIS system is always updated for any status updates related to your H1B petition. So, if you are picked in H1B Lottery, your DSO can look at SEVIS system and print out a New I20 and that will have your H1B case Number. Not all DSOs are friendly to share the details on this and may ask to check your employer. But, if there are any changes to your employment on OPT, or any other things like you want to go to India, you can ask them to print a new I-20 and that will get all the info regarding H1B status.